package pl.perseus.action;

import java.util.HashMap;

import lombok.Getter;
import lombok.Setter;

import org.springframework.beans.factory.annotation.Autowired;

import pl.perseus.model.Rach;
import pl.perseus.service.rach.IRachService;

public class GetRachAction extends BaseAction {

	@Autowired
	IRachService rachService;
	
	@Getter
	@Setter
	Rach rach;
	
	@Override
	public String execute() {
		
		result = new HashMap<String, Object>();
		result.put("rach", rachService.selectById(rach.getId()));
		
		return SUCCESS;
	}

}
